#include <iostream>
#include <string>
using namespace std;

/*
	string: 一种标准库类型,  保存任意长度的字符串.
	char str[20]
	支持基本数据类型中的基本的运算：+ += = > < >= <= != ==
*/

int main(int argc, char **argv)
{
	string str;
	cout << "input string: ";
	//cin >> str;			//空白字符			scanf	
	getline(cin, str);		//回车				gets fgets
	cout << "str: " << str << endl;

	return 0;
}
